import request from '@/utils/request'
// import qs from 'qs'
import { jdyadmin } from '@/settings'


export function login(data) {
  return request({
    url: `${jdyadmin}/jdyUser/login`,
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: `${jdyadmin}/jdyUser/info/${token}`,
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
